import {httpGet, httpPost, httpPut} from '@frontend/vue-common'
import {getCurrentGlobalProperties} from "@frontend/vue-common/src/app";

export const listProductCustomFieldListRowAPI = (pageNum, pageSize, sortField, sortOrder, filter) => {
    return httpGet("/v1/soms/productCustomFieldListRow", {
        pageNum: pageNum,
        pageSize: pageSize,
        sortField: sortField,
        sortOrder: sortOrder,
        columnId: filter.columnId,
		jsonValue: filter.jsonValue,
		
    })
}

export const addProductCustomFieldListRowAPI = (data) => {
    return httpPut("/v1/soms/productCustomFieldListRow", data)
}

export const getProductCustomFieldListRowAPI = (data) => {
    return httpGet(`/v1/soms/productCustomFieldListRow/${data.id}`, {})
}

export const editProductCustomFieldListRowAPI = (data) => {
    return httpPost(`/v1/soms/productCustomFieldListRow/${data.id}`, data)
}

export const deleteProductCustomFieldListRowAPI = (ids) => {
    return httpPost(`/v1/soms/batchDeleteProductCustomFieldListRow`, {
        ids: ids,
    })
}

